package dao.impl;

import java.util.List;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

import org.springframework.stereotype.Repository;

import dao.BusinessDAO;
import po.Business;
import po.Goods;
import po.Order;
import po.Student;

@Repository("bd")
public class BusinessDAOImpl implements BusinessDAO {
	@PersistenceContext(name="un")
	private EntityManager em;

	@Override
	public int addBusiness(Business b) {
		// TODO Auto-generated method stub
		em.persist(b);
		return 0;
	}
	
	

}
